class News < ActiveRecord::Base
  validates_presence_of :name 
  validates_length_of :name, :in => 3..30
  validates_uniqueness_of :name
  
  validates_presence_of :text
  validates_length_of :text, :in => 3..100
 
end
